import React from "react";
import {
    TouchableNativeFeedback,
    View
} from "react-native";

const Button = (props) => {
    return <TouchableNativeFeedback
        delayPressIn={0}
        useForeground={TouchableNativeFeedback.canUseNativeForeground()}
        background={TouchableNativeFeedback.Ripple("rgba(0,0,0,0.4)",false)} // eslint-disable-line new-cap
        {...props}
    >
        {props.children}
    </TouchableNativeFeedback>;
};

module.exports = Button;
